#include "parafluidorientation.h"

using namespace ParaFluid;

Orientation::~Orientation()
{
	/* does nothing */
}

Orientation::Orientation()
	: x(0)
	, y(0)
	, z(0)
{
	/* does nothing */
}

Orientation::Orientation(float X, float Y, float Z)
	: x(X)
	, y(Y)
	, z(Z)
{
	/* does nothing */
}

Orientation::Orientation(const Orientation & other)
	: x(other.x)
	, y(other.y)
	, z(other.z)
{
	/* does nothing */
}

Orientation & Orientation::operator= (const Orientation & rhs)
{
	if(&rhs != this)
	{
		x = rhs.x;
		y = rhs.y;
		z = rhs.z;
	}
	return *this;
}

bool Orientation::operator== (const Orientation & rhs) const
{
	bool result = true;
	if(&rhs != this)
	{
		result &= x == rhs.x;
		result &= y == rhs.y;
		result &= z == rhs.z;
	}
	return result;
}

